import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import Login from '@/views/Login.vue'
import Home from '@/views/home/home.vue'
import empty from '@/views/empty.vue'

import huizong from '@/views/hegelv/huizong.vue'
import pianqu from '@/views/hegelv/pianqu.vue'
import dianwei from '@/views/hegelv/dianwei.vue'
import shuizhi from '@/views/hegelv/shuizhi.vue'


Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            redirect: '/home'
        },
        {
            path: '/login',
            name: 'login',
            component: Login
        },
        {
            path: '/home',
            name: 'home',
            component: Home
        },
        {
            path: '/huizong',
            name: 'empty',
            component: empty,
            redirect: {
                name: 'huizong'
            },
            children: [{
                path: 'index',
                name: 'huizong',
                component: huizong,
            }]
        },
        {
            path: '/pianqu',
            name: 'empty',
            component: empty,
            redirect: {
                name: 'pianqu'
            },
            children: [{
                path: 'index',
                name: 'pianqu',
                component: pianqu,
            }]
        },
        {
            path: '/dianwei',
            name: 'empty',
            component: empty,
            redirect: {
                name: 'dianwei'
            },
            children: [{
                path: 'index',
                name: 'dianwei',
                component: dianwei,
            }]
        },
        {
            path: '/shuizhi',
            name: 'empty',
            component: empty,
            redirect: {
                name: 'shuizhi'
            },
            children: [{
                path: 'index',
                name: 'shuizhi',
                component: shuizhi,
            }]
        }
    ]
})